package com.kotlin.base.presenter

import android.content.Context
import com.kotlin.base.presenter.view.BaseView
import com.kotlin.base.utils.NetWorkUtils
import javax.inject.Inject

/**
 * @author Mr.Wang
 * @version v0.3.6
 * @time 2018/3/7
 * @describe
 */
open class BasePresenter<T:BaseView>{

    lateinit var mView:T

    @Inject
    lateinit var context: Context

    fun checkNetWork():Boolean{
        return NetWorkUtils.isConnected(context)
    }
}